package org.yxk;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
	@PostMapping("/test")
	public String test(String username) {
		return "xxxxxx";
	}

	public static void main(String[] args) throws  Exception {
		Thread th = new Thread(() -> {
			for (int i = 0; i < 10; i++) {

				try {
					Thread.sleep(1000);
					System.out.println("---"+i);
				} catch (InterruptedException e) {
					e.printStackTrace();
				}


			}
		});
		th.start();
		Thread.sleep(1000);
		if(th.isAlive()){
			System.out.println("11");
		}

		System.out.println("mmm");
	}
}
